/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author kylin
 */
public class App {  
  
    public static void main( String[] args ) {  
  
        PluginManager pluginManager = PluginManager.getMgr();  
        pluginManager.addExternalJar("D:\\osgi");  
  
        IHelloService helloService = pluginManager.getPlugin("com.bytebeats.example.plugin.HelloServiceImpl", IHelloService.class);  
        helloService.hello("ricky");  
  
        IUserService userService = pluginManager.getPlugin("com.bytebeats.example.plugin.UserServiceImpl", IUserService.class);  
        List<User> list = userService.getUsers();  
        System.out.println("list = [" + list + "]");  
  
        userService.update(new User("test", "test"));  
    }  
}  
